﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace _5._1demo.Models
{
    public class Student
    {
        public int StuId { get; set; }
        public string StuName { get; set; }
        [Required(ErrorMessage ="请填写姓名")]
        []
        public decimal StuHeight { get; set; }
        public DateTime StuAge { get; set; }
        public string StuEmail { get; set; } //使用正则表达式

    }
}